<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>asnyc</title>
    <script src="../../node_modules/jquery/jquery.min.js"></script>
</head>
<body>
    
</body>
<script>

let getdata=async ()=>{
    alert('async')
    let res1=await   $.ajax({url:"1.text",dataType:"json"});
    console.log(res1);
    let res2=await   $.ajax({url:"2.text",dataType:"json"});
    console.log(res2);
}
getdata();
</script>
</html>